

import os

from appdirs import appdirs
from dexen.system.common.meta import ScoreMeta
from dexen.system.node.master.env import MasterEnv
from dexen.system.common.service import MyService as Service    
from dexen.system.common.base import BaseSlaveTask, BaseMasterTask, Individual as BaseIndividual
from dexen.system.common.states import MasterState

APPDATA_DIR = appdirs.user_data_dir("Dexen", "DexenOrg")

if not os.path.exists(APPDATA_DIR):
    os.makedirs(APPDATA_DIR)

DEXEN_DIR = os.path.abspath(os.path.dirname(__file__))
PLUGINS_DIR = os.path.join(os.path.dirname(DEXEN_DIR), "plugins")

def get_plugin_folders():
    rootpath = PLUGINS_DIR
    return os.listdir(rootpath)
